package com.sshtools.cmd.action.impl;

import com.sshtools.cmd.action.GroupTask;
import com.sshtools.cmd.action.ServerTask;
import com.sshtools.view.model.ServerModel;

/**
 * 服务器发布任务
 *
 */
public class DeployTask extends GroupTask {

	private ServerTask[] group = new ServerTask[] { //
			new StopTask(server), //
			new SyncTask(server), //
			new StartTask(server), //
	};

	public DeployTask(ServerModel server) {
		super(server);
	}

	@Override
	protected ServerTask[] getGroup() {
		return group;
	}

}